package com.example.designPatten.strategy;

import com.example.designPatten.strategy.fly.FlyNoWay;
import com.example.designPatten.strategy.fly.FlyWithWings;
import com.example.designPatten.strategy.quack.Quack;
import com.example.designPatten.strategy.quack.Squeak;

public class ADuck extends Duck {
	public ADuck() {
		flyBehavior = new FlyWithWings();
		quackBehavior = new Squeak();
	}

	public void display() {
		System.out.println("I'm a duck model.");
	}

	public void changeBehavior() {
		setFlyBehavior(new FlyNoWay());
//		setQuackBehavior(new MuteQuack());
		setQuackBehavior(new Quack());
	}


}
